#include<bits/stdc++.h>
#define all(a) a.begin(), a.end()
using i32 = int;
using u32 = unsigned int;
using i64 = long long;
using u64 = unsigned long long;

//std::mt19937 rng {std::chrono::steady_clock::now().time_since_epoch().count()};

int main() {
	
	std::ios::sync_with_stdio(false);
	std::cin.tie(0);

	std::string x;
	std::cin >> x;
	int n = x.size();
	std::vector<bool> vis(n, true);
	for(int i = n - 1; i >= 0; i--) {
		if(x[i] != '0') {
			break;
		}
		if(x[i] == '0') {
			vis[i] = false;
		}
	}
	int p = x.find('.');
	if(vis[p + 1]) {
		for(int i = 0; i < n; i++) {
			if(vis[i]) {
				std::cout << x[i];
			}
		}
	} else {
		for(int i = 0; i < p; i++) {
			if(vis[i]) {
				std::cout << x[i];
			}
		}
	}
	

	return 0;
}